package com.car.loan.project.xr.util.vo.after;

import com.car.loan.project.xr.util.vo.LoanDetailVo.LoanBaseInfoVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import lombok.Data;

/**
 * @author huangding
 * @date 2020/2/26 22:17
 */
@Data
public class OverdueAdvancesInfo {

    @ApiModelProperty("借款人姓名")
    private String customerName;

    @ApiModelProperty("证件号码")
    private String idCardNo;

    @ApiModelProperty("手机号码")
    private String mobile;

    @ApiModelProperty("基本数据")
    private LoanBaseInfoVo loanBaseInfo;

    @ApiModelProperty("业务信息")
    private OverdueUrgentLogInfo.BusinessInfo businessInfo;

    @ApiModelProperty("车辆信息")
    private OverdueUrgentLogInfo.CarInfo carInfo;

    @ApiModelProperty("逾期信息")
    private OverdueUrgentLogInfo.OverdueInfo overdueInfo;

    @ApiModelProperty("垫款回收记录")
    private List<AdvancesInfo> advancesInfos;

    @Data
    public static class AdvancesInfo {

        @ApiModelProperty("发生日期")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime dateTime;

        @ApiModelProperty("收入金额")
        private BigDecimal incomeAmount = BigDecimal.ZERO;

        @ApiModelProperty("支出金额")
        private BigDecimal expensesAmount = BigDecimal.ZERO;

        @ApiModelProperty("垫款余额")
        private Double advancesBalance;

        @ApiModelProperty("备注")
        private String remark;

    }

}
